<template>
	<!--  #ifdef MP-WEIXIN -->
	<view class="u-page" @touchmove="tipp">
		<tip :tip="tip" v-if="gbtip==false" isCustom :text="tiptext"></tip>
		<!--  #endif -->
		<!--  #ifndef MP-WEIXIN -->
		<view class="u-page">
			<!--  #endif -->

			<widget name="buttom"></widget>

			<!--  #ifndef MP-WEIXIN -->
		</view>
		<!--  #endif -->
		<!--  #ifdef MP-WEIXIN -->
	</view>
	<!--  #endif -->
</template>

<script>
	import widget from "../service/widget"
	import xbutton from "../vue/xbutton.vue"
	import {
		mapGetters
	} from 'vuex'
	// #ifdef MP-WEIXIN
	import tip from "./tip"
	// #endif
	export default {
		data() {
			return {
				userid: 1,
				tiptext: "快来添加我吧！´∇`",
				gbtip: false
			}
		},
		methods: {
			tipp() {
				this.gbtip = true
			}
		},
		components: {
			widget,
			xbutton
			// #ifdef MP-WEIXIN
			,
			tip
			// #endif
		},
		created() {
			setTimeout(() => {
				this.gbtip = true
			}, 5000)
			this.$store.commit("clickicon", 0)
			uni.switchTab({
				url: this.tabBerList[0].pagePath
			});
		},
		mounted() {
			this.userid = uni.getStorage('userid');
		},
		computed: {
			...mapGetters([
				'tabBerList',
				'midBtn',
				'now',
				'old'
			])
		}
	}
</script>

<style lang="scss" scoped>

</style>
